import {BrowserRouter} from "react-router-dom";
import {Suspense} from "react";
import '@/assets/css/index.scss'

import {useRoutes} from "react-router-dom";
import RouteArr from '@/router/route'
import Loadding from "@/view/layout/Loadding";

// console.log(process.env.REACT_APP_KEY, '配置信息')
console.log(new Date().format('yyyy-MM-dd hh:mm:ss'))
//usseRoute必须作为函数调用才生效
const RouteEle = () =>useRoutes(RouteArr)
function App() {
  return (
      <Suspense fallback={<Loadding />}>
          <BrowserRouter>
              <RouteEle />
          </BrowserRouter>
      </Suspense>
  );
}




export default App;
